#ifndef EXPRUNARY_H
#define EXPRUNARY_H
#include <sstream>
#include "expr.h"
#include "tokentype.h"

class ExprUnary: public Expr
{
public:
    ExprUnary(Expr *unary, int fila, int col);
    void setUnary(Expr *unary);
    Expr* getUnary();
    void setis(int tokentype);
    virtual string is();
    virtual Tipo_ts * validarSemantica(Tabla_Simbolos *tabla_de_tipo,Tabla_Simbolos *tabla_de_varaible);
    virtual Codigo_Lugar generarCodigo(GenerarVariable* var,Tabla_Simbolos *tabla_de_tipo,Tabla_Simbolos *tabla_de_varaible);
private:
    Expr *unary;
    string is_;
};

#endif // EXPRUNARY_H
